package advanced.design_mode.proxymode;

/**
 * 静态代理
 */
public class ProxyStar implements Star {
    private Star boss;

    @Override
    public void sing() {
        boss.sing();
    }

    @Override
    public void confer() {
        System.out.println("proxy star confer ...");
    }

    public ProxyStar(Star boss) {
        this.boss = boss;
    }
}
